import request from "../utils/request.js"
/* 获取新朋友/互动消息 的未读消息数量 */
export const unreadCountAPI = (data) => {
	return request({
		url: "/applets/message/getUnreadCount",
		method: "post",
		data
	})
}
/* 获取腾讯IM用户签名 */
export const getImUserSigAPI = () => {
	return request({
		url: "/applets/common/getImUserSig",
		method: "post"
	})
}
/* 获取新朋友列表 */
export const getNewFriendListAPI = (data) => {
	return request({
		url: "/applets/message/getNewFriendList",
		method: "post",
		data
	})
}
/* 获取互动消息列表 */
export const getNotifyListAPI = (data) => {
	return request({
		url: "/applets/message/getNotifyList",
		method: "post",
		data
	})
}
/* 获取好友列表 */
export const getFriendListAPI = (data) => {
	return request({
		url: "/applets/message/getFriendList",
		method: "post",
		data
	})
}
/* 获取活动碰头列表 */
export const getChatRoomListAPI = (data) => {
	return request({
		url: "/applets/message/getChatList",
		method: "post",
		data
	})
}
/* 消息-好友/活动碰头-搜索 */
export const messageSearchAPI = (data) => {
	return request({
		url: "/applets/message/messageSearch",
		method: "post",
		data
	})
}
/* 获取聊天室主页 */
export const getGroupPeopleAPI = (data) => {
	return request({
		url: "/applets/message/getChatDetail",
		method: "post",
		data
	})
}
// 标记删除聊天群
export const deleteChat = (data) => {
	return request({
		url: "/applets/message/deleteChat",
		method: "post",
		data
	})
}
